// 首页
import axios from '@/api/request/request'

// 新增
const orderAdd = (option: any) => {
  return axios.post('/order/add', { ...option })
}

// 列表
const orderLists = (option: any) => {
  return axios.get('/order/lists', { ...option })
}

// 所有
const orderAll = (option: any) => {
  return axios.get('/order/all', { ...option })
}

// 更新
const orderUpdate = (option: any) => {
  return axios.post('/order/update', { ...option })
}

export { orderAdd, orderLists, orderAll, orderUpdate }
